package com.movie.util;

import android.content.Context;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;

import com.movie.act.R;

public class RoateUtil {
	private static Animation mAnimationRight;
	private static Animation mAnimationCenter;
	private static Animation mAnimationTen;
	public static void tranlateTen(Context mContext, View view) {
		mAnimationTen = AnimationUtils.loadAnimation(mContext,
				R.anim.rotate_ten);
		mAnimationTen.setFillAfter(true);
		view.setAnimation(mAnimationTen);
	}
	public static void tranlate(Context mContext, View view) {
		mAnimationRight = AnimationUtils.loadAnimation(mContext,
				R.anim.rotate_right);
		mAnimationRight.setFillAfter(true);
		view.setAnimation(mAnimationRight);
	}
	public static void tranlateCenter(Context mContext, View view) {
		mAnimationCenter = AnimationUtils.loadAnimation(mContext,
				R.anim.rotate_center);
		mAnimationCenter.setFillAfter(true);
		view.setAnimation(mAnimationCenter);
	}

}
